The American Dream Squeezed: A Data-Driven Look at the U.S. Housing Affordability Crisis
Author
Christian Navarro
Introduction
Background on my topic and my research question.
Methods
A brief overview of my data sources and analytical approach.
Results
Key Finding 1
Here is an interactive plot.
# Let's make a simple interactive plot with plotlylibrary(plotly)
Loading required package: ggplot2
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot
The following object is masked from 'package:stats':
filter
The following object is masked from 'package:graphics':
layout
library(ggplot2)# Example using mtcars datasetp <-ggplot(mtcars, aes(x = wt, y = mpg, color =factor(cyl))) +geom_point(size =2) +labs(title ="Car MPG vs Weight", x ="Weight (1000 lbs)", y ="Miles per Gallon")# Make it interactiveggplotly(p)